From 5a5a7f507d24dcf1df43e7a810bd606dea6b6ad8 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Wed, 24 Oct 2018 15:50:49 -0500 Subject: [PATCH] Move binary operators to start of line --- src/pgwui_core/pgwui_core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pgwui_core/pgwui_core.py b/src/pgwui_core/pgwui_core.py index a09c16b..fe14ccf 100644 --- a/src/pgwui_core/pgwui_core.py +++ b/src/pgwui_core/pgwui_core.py @@ -289,8 +289,8 @@ class CredsLoadedForm(LoadedForm): Produces the dict pyramid will use to render the form. ''' response = super(CredsLoadedForm, self).write(result, errors) - if ('havecreds' not in response or - ('havecreds' in response and not response['havecreds'])): + if ('havecreds' not in response + or ('havecreds' in response and not response['havecreds'])): # We don't know if the credentials are good or # we know they are bad. Keep them out of the session. response['user'] = '' @@ -1421,8 +1421,8 @@ class UploadHandler(SessionDBHandler): if hasattr(self, 'data'): response['lines'] = self.data.lineno - 1 response['e_cnt'] = len(errors) - response['db_changed'] = (not response['errors'] and - self.uf['action'] != '') + response['db_changed'] = (not response['errors'] + and self.uf['action'] != '') return response -- 2.34.1